package com.candy.thread;

import java.util.Date;

/**
 * @author donglin
 * @Title:
 * @类名: MyThread2
 * @date 2020/5/29
 */
public class MyThread2 extends Thread {
    public MyThread2() {
    }

    public MyThread2(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i <10 ; i++) {
            System.out.println("当前的线程是："+this.getName());
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }


}
